package net.luculent.utils;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.alibaba.fastjson.JSONObject;

public class CommonUtils {
	
	 /**
     * 判断是否为json字符串
     * @param content
     * @return
     */
	@Bean
    public static boolean isJson(String content){
        try {
            JSONObject json = JSONObject.parseObject(content);
            return  true;
       } catch (Exception e) {
            return false;
      }
    }
}
